package com.ruoyi.fetvApi.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.fetvApi.domain.FetvSchoolApi;
import com.ruoyi.fetvApi.mapper.FetvSchoolApiMapper;
import com.ruoyi.fetvApi.service.IFetvSchoolApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学校Service业务层处理
 * 
 * @author éé­æ°
 * @date 2023-02-24
 */
@Service
public class FetvSchoolApiServiceImpl implements IFetvSchoolApiService
{
    @Autowired
    private FetvSchoolApiMapper fetvSchoolApiMapper;

    /**
     * 查询学校
     * 
     * @param schoolId 学校主键
     * @return 学校
     */
    @Override
    public FetvSchoolApi selectFetvSchoolBySchoolId(Integer schoolId)
    {
        return fetvSchoolApiMapper.selectFetvSchoolBySchoolId(schoolId);
    }


    /**
     * 院校详情 返回三个院校对象，包含图片 学校名 学校地址还有学校id
     * @param fetvSchoolApi 学校
     * @return
     */
    @Override
    public List<FetvSchoolApi> selectFetvSchoolApiList(FetvSchoolApi fetvSchoolApi) {
        return fetvSchoolApiMapper.selectFetvSchoolApiList(fetvSchoolApi);
    }
}
